<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%--jstl을 쓰기 위해 사용 --%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %><%--숫자 포맷을 사용하기 위해 사용 --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"  prefix="fn"%><%--함수들을 이용하기 위해 사용 --%>
<%@ taglib prefix="c-rt" uri="http://java.sun.com/jstl/core_rt" %>  <%-- ie버전 확인에 쓰기 위해 씀 --%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<!--<script type="text/javascript" src="script/sms_riskI_script.js"></script>-->
</head>
<body>
<div class="box">
      		<h4 class="white">프로젝트관리</h4>
        <div class="box-container1">     		
        <form name="mplistDelForm" action="projectAction.do" method="post">
        	<input type="hidden" name="mode" value="mplist_delete"></input>
        	<input type="hidden" name="pro_id" value="${sessionScope.lastProId }"></input>
        	<table class="table-long">
      			<tfoot>
      				<tr>
      					<td>
      					<div class="align-right"><!--select class="form-select"><option value="option1">Bulk Options</option>
      					<option value="option2">Delete All</option></select-->
	      					<a href="#" class="button" onclick="javascript: copyProject()"><span>전회 RMP</span></a>
	      					<a href="#" class="button" onclick="javascript: pjWritePage()"><span>신규 RMP</span></a>
	      					<a href="#" class="button lastButton" onclick="javascript: pjDelete()"><span>삭제</span></a>
      					</div>
      					</td>
      				</tr>
      				<tr><td class="spaceLine"></td></tr>
      			</tfoot>
      		</table>
      		<table class="table-long">
      			<colgroup>
					<col width="45px"/>
					<col width="100px"/>
					<col width="90px"/>
					<col width="90px"/>
					<c-rt:choose>
						<c-rt:when test="${isMSIE67}">
							<col width="145px"/>
						</c-rt:when>
						<c-rt:otherwise>
							<col width="165px"/>
						</c-rt:otherwise>
					</c-rt:choose>
					<col width="45px"/>
					<col width="75px"/>
					<col/>
					<col width="15px"/>
				</colgroup>
      			<thead>
      				<tr>
      					<td class="col-chk" <c-rt:if test="${isMSIE67}">style="padding-left: 10px"</c-rt:if>><input type='checkbox' name='checkAll' onclick="javascript: selectAll()"  class="chkCursor"></input></td>
      					<td class="col-rowspanMid">RMP 버전</td>
      					<td>담당자</td>
      					<td>등록자</td>
      					<td>프로젝트명</td>
      					<td>상태</td>
      					<td>완료일</td>
      					<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      					기준적용</td>
      					<td></td>
      				</tr>
      			</thead>
      		</table>
      		<div class="scrollDIV">
      		<table class="table-long">
      			<colgroup>
					<col width="45px"/>
					<col width="100px"/>
					<col width="90px"/>
					<col width="90px"/>
					<c-rt:choose>
						<c-rt:when test="${isMSIE67}">
							<col width="145px"/>
						</c-rt:when>
						<c-rt:otherwise>
							<col width="165px"/>
						</c-rt:otherwise>
					</c-rt:choose>
					<col width="45px"/>
					<col width="75px"/>
					<col/>
					<col width="15px"/>
				</colgroup>
      			<tbody>
      				<c:choose>
                    	<c:when test="${fn:length(list)!= 0}">
                       	<c:forEach var="list" items="${requestScope.list}" varStatus="status">
                  			<%--
                   			<tr onmouseover="ChangeBackground(this,'over','${status.index}');" onmouseout="ChangeBackground(this,'out','${status.index}');" class="odd">
                   			 --%>
                   			 <tr <c:if test="${status.index%2==0 }">class="odd"</c:if> onmouseover="ChangeBackground(this,'over','${status.index}');" onmouseout="ChangeBackground(this,'out','${status.index}');">
                    			<td class="col-chk"<c-rt:if test="${isMSIE67}">style="padding-left: 10px"</c-rt:if>><input type="checkbox" name="check" id="check${status.index+1 }"  value='${list.pro_id}'  class="chkCursor"></input></td>
                    			<td>
                    				<div class="ellipsis"  style="width:100%;" title="${list.proDayIndex }">${list.proDayIndex }</div>
                    			</td>
                    			<td>
                    				<div class="ellipsis"  style="width:100%;" title="${list.pro_people }">${list.pro_people }</div>
                    			</td>
                    			<td>
                    				<div class="ellipsis"  style="width:100%;" title="${list.pro_loginID }">${list.pro_loginID }</div>
                    			</td>
                    			<td>
                    				<div class="ellipsis"  style="width:100%;"><a href="projectAction.do?mode=mplist_updatePage&pro_id=${list.pro_id }" class="nor ellipsis" title='${list.pro_nm }'>${list.pro_nm }</a></div>
                    			</td>
                    			<td>
                    				 <div title="${list.pro_state_nm }">${list.pro_state_nm }</div>
                    			</td>
                    			<td>
                    				${list.pro_lday }
                    			</td>
                    			<td>
                    			<!-- ie6에서 한글 깨짐 방지를 위한 전달 방법 -->
                    			<c:url var="url" value="projectAction.do">
                    				<c:param name="mode" value="projectApply"/>
								    <c:param name="pro_id" value="${list.pro_id }"/>
								    <c:param name="pro_nm" value="${list.pro_nm }"/>
								    <c:param name="proDayIndex" value="${list.proDayIndex }"/>            
								</c:url>
                    				<a href="<c:out value="${url}"/>" class="button"><span>적용</span></a>
                    			</td>
	   					 	<td></td>
                    		</tr>
                    	</c:forEach>
                    	</c:when>
                    	<c:otherwise>
                    		<tr class="odd">
								<td colspan="9" class="noDataTD">-생성된 프로젝트가 없습니다-</td>
							</tr>
                    	</c:otherwise>
                    	</c:choose>
      			</tbody>
      		</table>  	
      		</div>
      		</form>
      	</div><!-- end of div.box-container1 -->
      	</div> <!-- end of div.box -->
</body>
</html>